<?php
	$funeralhome_id = $this->VAS_fh_id;
 ?>
<ul class="basictab">
<li class="selected"><a href="/index/ksadminfuneralhome/funeralhome_id/<?php echo $funeralhome_id?>">Profile</a></li>
<li><a href="/index/ksadminfuneralhomemodules">Cash Advances</a></li>
<!--
<li><a href="/index/ksadminfuneralhomecashadvances">Cash Advances</a></li>
<li><a href="/index/ksadminfuneralhometopmerchandise">Top Merchandise</a></li>
-->
</ul>
<div class="basictabdiv">
<?php
	$fhPicName = $this->funeral_home['photo_image'];
	$fhLogoName = $this->funeral_home['logo_image'];
	$fhPicPath = FH_ART_BASE."/".$fhPicName;
	
	$fhLogoPath = FH_ART_BASE."/".$fhLogoName;

	$fhProfileForm = new FHProfileForm(
		array('funeral_home'=>$this->funeral_home, 
		'VAS_fh_id'=>$this->VAS_fh_id,
		'fh_picture_path'=>$fhPicPath,
		'fh_logo_path'=>$fhLogoPath
		 ));

	$fhProfileForm->setAction( '/index/ksadminfuneralhome');
	
	$fhProfileForm->populate( $this->funeral_home );
	$rendered_form = $fhProfileForm->render_with_template("funeralhomeprofile.xhtml");
	echo $rendered_form;
 ?>
</div> 
